<template>
  <div class="page-container">
    <iframe :src="url" style="width: 100%; height: 100vh" v-if="url"></iframe>
  </div>
</template>

<script setup name="HrhcCar">
  import { getQuantumLink } from '@/api/asset/equipment'
  import { ref } from 'vue'
  const url = ref('')
  import { useRouter } from 'vue-router'
  const router = useRouter()
  const init = () => {
    const params = {
      type: +router.currentRoute.value.params.type,
    }
    getQuantumLink(params).then((res) => {
      if (res.code === 200) {
        url.value = res.result
        console.log('url', url.value)
      }
    })
  }
  init()
</script>

<style lang="less" scoped></style>
